Skip to content

C++: Allow field flow in ReturnStackAllocatedMemory.ql#1865

Closed
jbj wants to merge 1 commit into
github:masterfrom
jbj:stack-allocated-memory-fields
Closed

C++: Allow field flow in ReturnStackAllocatedMemory.ql#1865
jbj wants to merge 1 commit into
github:masterfrom
jbj:stack-allocated-memory-fields

Conversation

@jbj

@jbj jbj commented Sep 4, 2019

Copy link
Copy Markdown
Contributor

Since local field flow is no longer a wild overapproximation, it can be allowed in the cpp/return-stack-allocated-memory query.

This removes a bit of the FP suppression I added in #1121. That's because #1787 added proper flow through fields in localFlow.

Since local field flow is no longer a wild overapproximation, it can be
allowed in the `cpp/return-stack-allocated-memory` query.
@jbj jbj added the C++ label Sep 4, 2019
@jbj jbj requested a review from a team as a code owner September 4, 2019 08:19
@jbj

jbj commented Oct 18, 2019

Copy link
Copy Markdown
Contributor Author

A field access can be a dereference, so I'm not confident that this change is correct.

@jbj jbj closed this Oct 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants